import request from '@/utils/request'

// 仓库--列表
export function queryWarehouseList(data){
  return request({
    url: '/wms_v1_pc/base/list-warehouse',
    method: 'POST',
    data
  })
}

// 仓库--新增
export function savaWarehouse(data){
  return request({
    url: '/wms_v1_pc/base/save-warehouse',
    method: 'POST',
    data
  })
}

// 仓库--编辑
export function updateWarehouse(data){
  return request({
    url: '/wms_v1_pc/base/update-warehouse',
    method: 'POST',
    data
  })
}

// 仓库--详情
export function getWarehouseDetail(params){
  return request({
    url: '/wms_v1_pc/base/get-warehouse',
    method: 'get',
    params
  })
}

// 仓库--日志
export function getWarehouseLog(params){
  return request({
    url: '/wms_v1_pc/base/list-warehouse-log',
    method: 'get',
    params
  })
}

// 仓库--导入
export function importWarehouse(data){
  return request({
    url: '/wms_v1_pc/base/import-warehouse',
    method: 'POST',
    data
  })
}